#include <iostream>
#include "iomanip"
using namespace std;


int main(int argc, char const *argv[])
{
    int num = 10;

    // 不同进制的输出
    cout << "num(10) = " << num << endl;

    cout << "num(16) = " << hex << num << endl;

    cout << "num(08) = " << oct << num << endl;

    // 字符串输出  
    const char * str_1 = "张三";
    char str_2[100] = "zhangsan ";

    cout << str_1 << endl;

    // 输出浮点数

    float Pi = 3.1415926;
    // 输出 3 位
    cout << setprecision(3) << Pi << endl;
    // 输出 4 位
    cout << setprecision(8) << Pi << endl;

    printf("%.3f\n" , Pi);


    return 0;
}



// 0 1 2 3 4 5 6 7 10 11 12